How to get directions of any vector